/* Styles for the contact form - scoped to only affect the form */
/* Remove global selectors */

.ncn-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(204, 0, 0, 0.15);
    border: 1px solid #ffe6e6;
    /* Add font family here to scope it to the container only */
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
}

.ncn-container * {
    box-sizing: border-box;
}

.ncn-container .ncn-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.ncn-container .ncn-form-header h3 {
    color: #555;
    font-weight: normal;
    margin-bottom: 10px;
    margin: 0 0 10px 0;
    padding: 0;
}

.ncn-container .ncn-form-header h2 {
    color: #cc0000;
    font-size: 24px;
    margin: 0;
    padding: 0;
}

.ncn-container .ncn-product-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff0f0;
    border-radius: 6px;
    border: 1px solid #ffcccc;
}

.ncn-container .ncn-product-image {
    flex: 0 0 80px;
    margin-right: 15px;
}

.ncn-container .ncn-product-image img {
    max-width: 100%;
    border: 1px solid #ffcccc;
}

.ncn-container .ncn-product-description {
    flex: 1;
    font-size: 14px;
}

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

.ncn-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #800000;
}

/* Phone number with country code styling */
.ncn-container .ncn-phone-input-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 41px; /* Match input height */
}

.ncn-container .ncn-country-code-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ncn-container .ncn-selected-country {
    display: flex;
    align-items: center;
    height: 100%;
    background-color: #fff;
    border: 1px solid #ffcccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #800000;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.ncn-container .ncn-selected-country .ncn-flag {
    margin-right: 5px;
    font-size: 16px;
}

.ncn-container .ncn-dropdown-arrow {
    margin-left: 5px;
    font-size: 10px;
    color: #cc0000;
}

.ncn-container .ncn-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
    z-index: 100;
    display: none;
}

.ncn-container .ncn-country-dropdown.show {
    display: block;
}

.ncn-container .ncn-country-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
}

.ncn-container .ncn-country-option:hover {
    background-color: #fff0f0;
}

.ncn-container .ncn-country-option.ncn-current-language {
    background-color: #ffe6e6;
    font-weight: bold;
}

.ncn-container .ncn-country-option .ncn-flag {
    margin-right: 10px;
    font-size: 16px;
}

.ncn-container .ncn-country-option .ncn-country-name {
    margin-left: 10px;
    color: #666;
    font-size: 13px;
}

.ncn-container .ncn-phone-input-wrapper input[type="tel"] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    flex-grow: 1;
    margin: 0;
    height: 100%;
}

.ncn-container input[type="text"],
.ncn-container input[type="email"],
.ncn-container input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.ncn-container input[type="text"]:focus,
.ncn-container input[type="email"]:focus,
.ncn-container input[type="tel"]:focus,
.ncn-container .ncn-input-focused {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 3px rgba(204, 0, 0, 0.3);
}

.ncn-container .ncn-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 5px;
    justify-content: center;
}

.ncn-container .ncn-radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #fff;
    border: 1px solid #ffcccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.ncn-container .ncn-radio-option:hover {
    background-color: #cc0000;
}

.ncn-container .ncn-radio-option:hover label {
    color: white;
}

.ncn-container .ncn-radio-option label {
    cursor: pointer;
    font-size: 13px;
    margin: 0;
    color: #800000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

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

/* Style for selected radio button */
.ncn-container .ncn-radio-option input[type="radio"]:checked + label {
    font-weight: bold;
    color: white;
}

.ncn-container .ncn-radio-option:has(input[type="radio"]:checked) {
    background-color: #cc0000;
    border: 2px solid #990000;
}

.ncn-container .ncn-hint {
    font-weight: normal;
    font-size: 12px;
    color: #999;
}

.ncn-container .ncn-checkbox-group {
    display: flex;
    align-items: flex-start;
}

.ncn-container .ncn-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    accent-color: #cc0000;
}

.ncn-container .ncn-checkbox-group label {
    font-weight: normal;
    font-size: 13px;
}

.ncn-container button[type="submit"],
.ncn-container .ncn-submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.ncn-container button[type="submit"]:hover,
.ncn-container .ncn-submit-btn:hover {
    background-color: #990000;
}

.ncn-container .ncn-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.ncn-container .ncn-form-message.ncn-success {
    display: block;
    background-color: #ffeeee;
    color: #cc0000;
    border: 1px solid #ffcccc;
}

.ncn-container .ncn-form-message.ncn-error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ncn-container .ncn-input-error {
    border-color: #cc0000 !important;
}

.ncn-container .ncn-form-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #ffdddd;
    padding-top: 10px;
}

/* Responsive design */
@media (min-width: 768px) {
    .ncn-container .ncn-contact-info {
        display: flex;
        gap: 10px;
    }
    
    .ncn-container .ncn-contact-info .ncn-form-group {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .ncn-container .ncn-radio-group {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 5px;
        margin-top: 5px;
    }
    
    .ncn-container .ncn-radio-option {
        width: 55px;
        height: 55px;
        font-size: 12px;
    }
    
    .ncn-container .ncn-radio-option label {
        font-size: 11px;
    }
}