@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    /* 느낌을 내기 위해 Unsplash의 무료 배경 이미지 삽입 (선택 사항) */
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 배경을 어둡게 눌러주는 오버레이 */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

.widget-wrapper {
    width: 100%;
    max-width: 450px;
    background: rgba(30, 30, 30, 0.85); /* 반투명한 어두운 컨테이너 */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.tab-header {
    background: #ff4c4c; /* w3layouts에서 자주 쓰는 강렬한 핑크/레드 포인트 */
    padding: 22px;
    text-align: center;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.tab-header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-container {
    padding: 35px 30px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #dfdfdf;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.08); /* 반투명 인풋창 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input[type="text"]:focus {
    border-color: #ff4c4c;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 8px rgba(255, 76, 76, 0.4);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #ff4c4c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #e63939;
}

.submit-btn:disabled {
    background: #888;
    cursor: not-allowed;
}

.progress-container {
    padding: 0 30px 25px;
    transition: opacity 0.3s ease;
}

.progress-container.hidden {
    display: none;
}

.progress-status {
    color: #dfdfdf;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-align: center;
    min-height: 1.2em;
}

.progress-bar-wrapper {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #ff4c4c;
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

.progress-bar.error {
    background: #a94442; /* 에러 시 다른 빨간색 */
}