@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #3eb9c3;
    --primary-gradient: linear-gradient(135deg, #3eb9c3 0%, #2e8b92 100%);
    --secondary-color: #53c83c;
    --text-color: #2c3e50;
    --label-color: #5d6d7e;
    --bg-color: #f0f7f8;
    --card-bg: #ffffff;
    --input-bg: #f8fbfa;
    --border-color: #d1e5e7;
    --border-hover: #3eb9c3;
    --error-color: #e74c3c;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background: url(../img/bg.jpg) no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.page-content {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.page-logo {
    height: 4.5rem;
    margin-top: 4rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.form-v4-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 650px; /* Narrower for single column */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column; /* Simplified to stack content */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-header {
    background: var(--primary-gradient);
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

.form-detail {
    padding: 3rem;
}

.form-detail h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    border-bottom: 2px solid #f0f4f5;
    padding-bottom: 1rem;
}

.form-row {
    margin-bottom: 1.8rem;
    position: relative;
    transition: transform 0.2s ease;
}

.form-row:focus-within {
    transform: translateX(5px);
}

.form-detail label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--label-color);
    margin-bottom: 10px;
}

.form-detail input[type="text"],
.form-detail input[type="email"],
.form-detail input[type="tel"],
.form-detail select,
.form-detail textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: var(--input-bg);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-detail input:focus,
.form-detail select:focus,
.form-detail textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(62, 185, 195, 0.15);
}

.form-detail textarea {
    height: 120px;
    resize: vertical;
}

/* Checkbox group styling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8fbfa;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    background: #eef7f8;
    border-color: var(--primary-color);
}

.checkbox-item input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.form-row-last {
    margin-top: 3rem;
    text-align: center;
}

.submit {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(46, 139, 146, 0.3);
}

.submit:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(46, 139, 146, 0.4);
}

.submit:active {
    transform: scale(0.98);
}

.form-detail a {
    display: inline-block;
    margin-top: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-detail a:hover {
    text-decoration: underline;
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Responsive */
@media screen and (max-width: 650px) {
    .form-v4-content {
        margin-top: 1rem;
        border-radius: 0;
    }
    .form-detail {
        padding: 2rem;
    }
}
