/* Nausys Partner Form - Frontend Styles */

.nausys-partner-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

.nausys-partner-form {
    position: relative;
}

/* Rows */
.npf-row {
    margin-bottom: 20px;
}

.npf-row-half {
    display: flex;
    gap: 16px;
}

.npf-row-half .npf-field {
    flex: 1;
}

/* Labels */
.npf-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.npf-req {
    color: #e74c3c;
}

/* Inputs, Selects, Textarea */
.nausys-partner-form input[type="text"],
.nausys-partner-form input[type="email"],
.nausys-partner-form input[type="tel"],
.nausys-partner-form select,
.nausys-partner-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.nausys-partner-form input:focus,
.nausys-partner-form select:focus,
.nausys-partner-form textarea:focus {
    outline: none;
    border-color: #01024d;
    box-shadow: 0 0 0 3px rgba(1, 2, 77, 0.1);
}

.nausys-partner-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Validation error state */
.nausys-partner-form .npf-error input,
.nausys-partner-form .npf-error select,
.nausys-partner-form .npf-error textarea {
    border-color: #e74c3c;
}

.npf-field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

/* Phone row */
.npf-phone-wrap {
    display: flex;
    gap: 8px;
}

.npf-phone-code {
    flex: 0 0 160px;
    min-width: 160px;
}

.npf-phone-wrap .select2-container {
    flex: 0 0 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
}

.npf-phone-wrap input[type="tel"] {
    flex: 1;
    min-width: 0;
}

/* Boat type cards grid */
.npf-boat-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}

.npf-boat-card {
    position: relative;
}

.npf-boat-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.npf-boat-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-align: center;
    font-weight: 400 !important;
}

.npf-boat-card-inner:hover {
    border-color: #999;
    background: #fafafa;
}

.npf-boat-checkbox:checked + .npf-boat-card-inner {
    border-color: #01024d;
    background: #f0f1f8;
    box-shadow: 0 0 0 1px #01024d;
}

.npf-boat-icon {
    width: 40px;
    height: 40px;
    color: #01024d;
}

.npf-boat-icon svg {
    width: 100%;
    height: 100%;
}

.npf-boat-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Consent row */
.npf-consent-row {
    margin-bottom: 20px;
}

.npf-consent-label {
    display: inline-flex !important;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400 !important;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
}

.npf-consent-label input[type="checkbox"] {
    width: auto;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Submit button */
.npf-submit {
    display: inline-block;
    background: #01024d;
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.npf-submit:hover {
    background: #020380;
}

.npf-submit:active {
    transform: scale(0.98);
}

.npf-submit:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

/* Feedback message */
.npf-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.npf-feedback-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.npf-feedback-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Loading spinner */
.npf-submit .npf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: npf-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes npf-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .npf-boat-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .npf-row-half {
        flex-direction: column;
        gap: 0;
    }

    .npf-phone-code,
    .npf-phone-wrap .select2-container {
        flex: 0 0 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
    }

    .npf-boat-types-grid {
        grid-template-columns: 1fr;
    }
}
