/* css/styles.css */

/* --- CONFIGURATION VARIABLES --- */
:root {
    --bg-color: #000000;
    --accent-color: #129dd9;   /* Light Blue */
    --text-color: #ffffff;     /* White */
    --desc-color: #9ecde0;     /* Pale Blue/Grey */
    --placeholder-color: #b0b0b0;
    --form-bg: #f8f9fa;
    --form-text: #333333;
}

/* --- RESET & BASE STYLES --- */
* { box-sizing: border-box; }

body {
    margin: 0; 
    padding: 0;
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-color);
    
    /* Path updated to go up one level (..) from css folder to img folder */
    background-image: url('../img/top_map.png');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- LAYOUT --- */
.wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    align-items: center;
}

/* --- LEFT COLUMN (INFO) --- */
.info-col {
    flex: 1;
    padding: 40px;
    min-width: 300px;
}

.price-badge {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 25px;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.domain-name {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    margin: 0;
    line-height: 1.1;
}

.is-for-sale {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 20px 0;
}

.desc-text {
    color: var(--desc-color);
    line-height: 1.6;
    margin-top: 35px;
    margin-bottom: 45px;
    max-width: 500px;
    font-weight: 400;
}

/* Contact Info Styles */
.contact-info-header {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    font-weight: 700;
    color: var(--text-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-item svg {
    fill: var(--text-color);
    width: 20px;
    margin-right: 10px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* --- RIGHT COLUMN (FORM) --- */
.form-col {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    margin: 0 auto;
}

.form-card {
    background: var(--form-bg);
    color: var(--form-text);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-top: 5px solid var(--accent-color);
}

.form-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #111;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #444;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    font-family: 'Rubik', sans-serif;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    transition: filter 0.3s;
    font-family: 'Rubik', sans-serif;
}

.submit-btn:hover {
    filter: brightness(85%);
    color: #ffffff !important;
}

/* Success Message */
.success-msg {
    display: none; /* Hidden by default, toggled by JS */
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }
    .info-col {
        padding: 20px 0;
        text-align: center;
    }
    .desc-text {
        margin: 30px auto;
    }
    .contact-item {
        justify-content: center;
    }
    .domain-name, 
    .is-for-sale {
        font-size: 2rem;
    }
    .form-col {
        width: 100%;
    }
}