/* POE2TOOLS 스타일 - POE Discount Notifier */

.poe-subscription-form {
    max-width: 700px;
    width: 90%;
    margin: 40px auto;
    padding: 50px;
    background: #2d2d2d;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.poe-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.poe-form-header h3 {
    color: #f4d03f;
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.poe-form-header p {
    color: #cccccc;
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.poe-form-group {
    margin-bottom: 30px;
}

.poe-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
}

.poe-input, .poe-select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    font-size: 16px;
    background: #1a1a1a;
    color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 60px; /* 높이 통일 */
}

.poe-input:focus, .poe-select:focus {
    outline: none;
    border-color: #f4d03f;
    box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.2);
    background: #222222;
}

.poe-input::placeholder {
    color: #888888;
}

.poe-help-text {
    display: block;
    margin-top: 8px;
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.4;
}

.poe-submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f4d03f 0%, #f39c12 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
}

.poe-submit-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

.poe-submit-btn:active {
    transform: translateY(0);
}

.poe-submit-btn:disabled {
    background: #555555;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.poe-loading {
    display: inline-block;
}

.poe-message {
    margin-top: 25px;
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid transparent;
}

.poe-message.success {
    background: rgba(46, 125, 50, 0.2);
    color: #81c784;
    border-color: rgba(46, 125, 50, 0.3);
}

.poe-message.error {
    background: rgba(198, 40, 40, 0.2);
    color: #e57373;
    border-color: rgba(198, 40, 40, 0.3);
}

.poe-form-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #4a4a4a;
}

.poe-form-footer small {
    color: #cccccc !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    display: block !important;
    margin-bottom: 12px !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .poe-subscription-form {
        margin: 20px 10px !important;
        padding: 30px 25px !important;
        max-width: none !important;
        width: 100% !important; /* 모바일에서 100% 너비 */
    }
    
    .poe-form-header h3 {
        font-size: 28px !important;
    }
    
    .poe-form-header p {
        font-size: 16px !important;
    }
    
    .poe-input, .poe-select {
        padding: 16px 18px !important;
        height: 56px !important; /* 모바일에서도 높이 통일 */
        font-size: 16px !important;
    }
    
    .poe-submit-btn {
        padding: 18px !important;
        font-size: 16px !important;
    }
    
    .poe-form-footer small {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    .poe-subscription-form {
        margin: 15px 5px !important;
        padding: 25px 20px !important;
        width: 100% !important; /* 작은 화면에서도 100% 너비 */
    }
    
    .poe-form-header h3 {
        font-size: 24px !important;
    }
    
    .poe-form-header p {
        font-size: 15px !important;
    }
    
    .poe-input, .poe-select {
        padding: 14px 16px !important;
        height: 52px !important; /* 작은 화면에서도 높이 통일 */
        font-size: 16px !important; /* iOS에서 줌 방지 */
    }
    
    .poe-submit-btn {
        padding: 16px !important;
        font-size: 16px !important;
    }
    
    .poe-form-footer small {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .poe-form-group {
        margin-bottom: 25px !important;
    }
    
    .poe-form-group label {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
}

/* 초소형 화면 (350px 이하) */
@media (max-width: 350px) {
    .poe-subscription-form {
        margin: 10px 3px !important;
        padding: 20px 15px !important;
        width: 100% !important; /* 초소형 화면에서도 100% 너비 */
    }max-width: 350px) {
    .poe-subscription-form {
        margin: 10px 3px !important;
        padding: 20px 15px !important;
    }
    
    .poe-form-header h3 {
        font-size: 22px !important;
    }
    
    .poe-input, .poe-select {
        height: 50px !important;
        padding: 12px 14px !important;
    }
    
    .poe-submit-btn {
        padding: 14px !important;
        font-size: 15px !important;
    }
}

/* 로딩 스피너 - POE 테마 */
.poe-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    border-top-color: transparent;
    animation: poe-spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes poe-spin {
    to { transform: rotate(360deg); }
}

/* 추가 호버 효과 */
.poe-input:hover, .poe-select:hover {
    border-color: #666666;
}

/* 셀렉트 박스 커스터마이징 및 드롭다운 스타일 */
.poe-select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23f4d03f" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: 60px !important; /* 이메일 입력란과 높이 통일 */
}

/* 드롭다운 옵션 스타일링 - 강제 적용 */
.poe-select option {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    padding: 12px !important;
    border: none !important;
    font-size: 16px !important;
}

.poe-select option:hover,
.poe-select option:focus,
.poe-select option:checked,
.poe-select option:selected {
    background-color: #f4d03f !important;
    color: #1a1a1a !important;
    background: #f4d03f !important;
}
