/*
 * Custom CSS tailored to match nic.com's design.
 * This stylesheet replicates the color scheme, typography, and layout.
 */

/* --- Global Styles & Resets --- */
body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568; /* Dark grey for body text */
    background-color: #f0f2f5; /* Light grey background */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* --- Main Container (Card-like) --- */
.container {
    width: 95%;
    max-width: 900px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 30px auto;
}

/* --- Header & Logo --- */
.container table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
    border-spacing: 0;
}

.container table td {
    padding: 0;
    vertical-align: middle;
}

.container table td:first-child {
    text-align: left; /* Align logo to the left */
}

/* Styling for the logo image */
.container #title_link img {
    max-width: 180px; /* Adjust size to match nic.com's logo */
    height: auto;
    display: block;
}


/* .container table td:last-child {
    display: none; 
} */

/* --- Horizontal Rule (Divider) --- */
hr {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 30px 0;
    width: 100%;
}

/* --- Descriptive Text --- */
p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #555;
    text-align: center;
}

/* --- Lookup Form --- */
form {
    width: 100%;
    max-width: 700px;
}

#lookup_form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    padding: 25px;
    background-color: #fcfdfe;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Input text fields */
input[type="text"] {
    flex-grow: 1;
    min-width: 250px;
    padding: 14px 18px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
    color: #4a5568;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: #213E93;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

/* Select dropdown */
select[name="extension"] {
    padding: 14px 18px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
    color: #4a5568;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    min-width: 130px;
    box-sizing: border-box;
}

select[name="extension"]:focus {
    border-color: #213E93;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

/* Submit button */
input[type="submit"] {
    background-color: #213E93; /* Match nic.com's primary blue */
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

input[type="submit"]:hover {
    background-color: #2c5282; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2);
}

input[type="submit"]:active {
    background-color: #2a4365;
    transform: translateY(0);
    box-shadow: none;
}

/* --- Response Display Area --- */
.response_display {
    background-color: #f8f9fa;
    width: 100%;
    max-width: 750px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 30px;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    color: #4a5568;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
}

/* --- Domain Availability Message --- */
.domain_available_message {
    color: #38a169;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 16px;
}

/* --- Utility Links --- */
a {
    color: #213E93;
    text-decoration: none;
    transition: text-decoration 0.2s ease, color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #2c5282;
}

.container > a {
    display: block;
    margin-top: 20px;
    font-size: 20px;
    color: #2c5282;
    font-weight: bold;
    text-decoration:underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 25px;
        margin: 10px auto;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    #title_link img {
        max-width: 150px;
    }

    #lookup_form {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 10px;
    }

    input[type="text"],
    select[name="extension"],
    input[type="submit"] {
        width: 100%;
        box-sizing: border-box;
        min-width: unset;
        padding: 12px 15px;
        font-size: 15px;
    }

    select[name="extension"] {
        padding-right: 30px;
    }

    .response_display {
        padding: 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    #lookup_form {
        padding: 15px;
    }
}


