/* assets/css/style.css */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container - fixed height to prevent scrolling */
.container {
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    height: auto;
    border: 2px solid #000000;
    padding: 25px 30px;
    background-color: #ffffff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Logo container - top left */
.logo-container {
    margin-bottom: 15px;
    border-bottom: 2px solid #000000;
    padding-bottom: 15px;
}

.logo {
    max-width: 120px;
    height: auto;
    display: block;
    border: none;
}

/* Headings */
h2 {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
    flex-shrink: 0;
}

/* Form container - scrollable */
.form-container {
    overflow-y: auto;
    padding-right: 5px;
    flex: 1;
}

/* Custom scrollbar */
.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #ffffff;
    border-left: 1px solid #000000;
}

.form-container::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
}

/* Form groups */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

label {
    width: 180px;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    flex-shrink: 0;
    padding-top: 8px;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
input[type="file"] {
    flex: 1;
    min-width: 250px;
    padding: 8px 10px;
    border: 2px solid #000000;
    background-color: #ffffff;
    font-size: 14px;
    color: #000000;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

input:focus, textarea:focus {
    outline: none;
    background-color: #f0f0f0;
}

/* Placeholder styling */
::placeholder {
    color: #666666;
    font-size: 12px;
    font-style: italic;
}

/* File input styling */
input[type="file"] {
    padding: 6px;
    background-color: #ffffff;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #000000;
    color: #ffffff;
    padding: 6px 12px;
    border: 2px solid #000000;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    cursor: pointer;
    margin-right: 10px;
    border-radius: 0;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    margin: 15px 0 10px 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Links */
p {
    text-align: left;
    margin-top: 5px;
    font-size: 13px;
    border-top: 2px solid #000000;
    padding-top: 12px;
    flex-shrink: 0;
}

a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
}

a:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Required field indicator */
label:contains("*")::after,
label:has(+ input[required])::after {
    content: "*";
    margin-left: 3px;
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        max-height: 95vh;
    }
    
    .logo {
        max-width: 100px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    label {
        width: 100%;
        margin-bottom: 5px;
        padding-top: 0;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="url"],
    textarea,
    input[type="file"] {
        width: 100%;
        min-width: 100%;
    }
    
    button {
        padding: 10px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
        border-width: 1px;
    }
    
    .logo-container {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .logo {
        max-width: 80px;
    }
    
    h2 {
        font-size: 18px;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    label {
        font-size: 12px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="url"],
    textarea,
    input[type="file"] {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    textarea {
        min-height: 50px;
    }
    
    button {
        padding: 10px;
        font-size: 13px;
        margin: 10px 0 8px 0;
    }
    
    p {
        font-size: 12px;
        padding-top: 10px;
    }
}

/* Landscape orientation */
@media screen and (max-height: 700px) and (orientation: landscape) {
    .container {
        max-height: 85vh;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    label {
        font-size: 12px;
    }
    
    input, textarea {
        padding: 5px 8px;
    }
    
    textarea {
        min-height: 40px;
    }
}

/* For very small screens */
@media screen and (max-width: 360px) {
    .container {
        padding: 12px;
    }
    
    .logo {
        max-width: 70px;
    }
    
    h2 {
        font-size: 16px;
    }
}