/* --- Import Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&display=swap');

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; 
    outline: none;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Subtle background pattern */
    background-color: #FFB823; /* Fallback color */
    /* background-image: repeating-linear-gradient(
        45deg, 
        #f1f1f1 0, 
        #f1f1f1 1px, 
        #f8f9fa 1px, 
        #f8f9fa 30px
    ); */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Reduced padding for more space for content */
    min-height: 100vh;
}

/* --- NEW: Page Layout Container (for two columns) --- */
.page-layout-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Image takes 1 part, Form takes 1.2 parts */
    background-color: #ffffff; /* Combined background for the whole unit */
    border-radius: 15px;
    overflow: hidden; /* Important for border-radius on children */
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
    max-width: 1200px; /* Max width for the entire layout */
    width: 100%;
    min-height: 80vh; /* Ensure it takes up enough vertical space */
    animation: fadeIn 0.8s ease-out;
}

/* NEW: Image Section Styles */
.image-section {
    background-image: url('../assets/img/owner1.jpeg'); 
    /* Placeholder image: replace with a high-quality tattoo art image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.image-section .overlay {
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-section .quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #FFB823
;
    margin-bottom: 10px;
    line-height: 1.4;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.image-section .author {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #FFB823;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* NEW: Form Wrapper */
.form-wrapper {
    padding: 40px; /* Padding for the form side */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the form vertically */
    background-color: #FFF1CA
;
}

/* --- Form Container --- */
.form-container {
    /* Removed individual border styles as page-layout-container now handles main border */
    border: none; 
    border-radius: 0; /* No individual radius, handled by parent */
    padding: 0; /* Reset padding, wrapper handles it */
    box-shadow: none; /* No individual shadow */
    width: 100%;
    max-width: none; /* Allow it to take full width of its parent */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Form Header --- */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

/* NEW: Style for Brand Title (replaces SVG icon) */
.brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem; /* Larger for brand prominence */
    color: #2D4F2B
; /* Brand accent color */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}


.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem; /* Slightly smaller to let brand title stand out */
    color: #2D4F2B
; /* Darker for content hierarchy */
    margin-bottom: 10px;
}

.form-header p {
    font-weight: 300;
    color: #2D4F2B
;
    font-size: 0.9rem;
    margin-bottom: 30px;
    position: relative;
}

.form-header p::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Slightly shorter divider */
    height: 1px;
    background-color: #ddd;
}

/* --- Input Groups & Grid Layout --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2D4F2B
;
    font-size: 0.9rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px;
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #2D4F2B
;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #2D4F2B
;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #5a7d7c;
    box-shadow: 0 0 8px rgba(90, 125, 124, 0.2);
    transform: scale(1.02);
}

/* --- Custom File Upload --- */
input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 30px;
    background-color: #fcfcfc;
    border: 2px dashed #ccc;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.file-upload-label span {
    color: #888;
    font-weight: 400;
}

.file-upload-label:hover {
    border-color: #5a7d7c;
    background-color: #f7fafa;
}

/* --- Custom Radio Buttons --- */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.radio-group label {
    margin: 0;
    display: block;
    position: relative;
}

.radio-group input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

.radio-group span {
    display: block;
    padding: 12px;
    background: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    font-weight: 400;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked + span {
    background-color: #FFB823;
    border-color: #5a7d7c;
    color: #2D4F2B
;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(90, 125, 124, 0.2);
}

.radio-group span:hover {
    background-color: #f5f5f5;
}

.radio-group input[type="radio"]:checked + span:hover {
    background-color: #6a908e;
}

/* --- Submit Button --- */
button[type="submit"] {
    width: 100%;
    padding: 16px;
    background-color: #FFB823;
    color: #2D4F2B
;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #FFF1CA
;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(90, 125, 124, 0.2);
}

/* --- Responsiveness --- */
@media (max-width: 992px) { /* Changed breakpoint for tablet/smaller desktop */
    .page-layout-container {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        max-width: 600px; /* Adjust max-width for single column */
    }

    .image-section {
        height: 250px; /* Give image section a fixed height on mobile */
    }

    .form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 600px) { /* Mobile specific styles */
    body {
        padding: 15px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }

    .image-section .quote {
        font-size: 1.4rem;
    }
}